<?php
	include '../models/Model.php';
	$model=new model();
	$orderFee=$_POST['orderFee'];
	$cancelFee=$_POST['cancelFee'];
	if($model->updateFee($orderFee,$cancelFee)==0)
	{
		echo "<script type='text/javascript'>\n";
		echo "alert('Update successful!');\n";
		echo "window.location='../view/manager/admin.php'";
		echo "</script>";
	}
	else
	{
		echo "<script type='text/javascript'>\n";
		echo "alert('Update fail!');\n";
		echo "window.location='../view/manager/admin.php'";
		echo "</script>";
	}
	header("Location:../view/manager/admin.php");
?>